<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 董胜涛
  Date: 2022/3/2
  Time: 16:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1" cellpadding="4" cellspacing="0">
    <tr>
        <td>编号</td>
        <td>名字</td>
        <td>大小</td>
        <td>描述</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${requestScope.jars}" var="jar">
        <tr>
            <td>${jar.id}</td>
            <td>${jar.name}</td>
            <td>${jar.size}</td>
            <td>${jar.description}</td>
            <td><a href="${pageContext.request.contextPath}/jar/download.do?filename=${jar.filename}&name=${jar.name}">下载</a></td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="5"><a href="${pageContext.request.contextPath}/uplaod.jsp">增加jar包</a></td>
    </tr>
</table>
<a href="${pageContext.request.contextPath}/input.jsp">导入excel表格</a>
<a href="${pageContext.request.contextPath}/jar/output.do">导出excel表格</a>
</body>
</html>
